package com.example.administrator.managesystem.activity.my_profile;

import android.view.View;
import android.widget.ImageView;

import com.example.administrator.managesystem.R;
import com.example.administrator.managesystem.base.BaseActivity;
import com.example.administrator.managesystem.utils.GlobalConfig;
import com.example.administrator.managesystem.utils.StatusBarUtil;
import com.squareup.picasso.Picasso;

public class ImageViewActivity extends BaseActivity {
    private ImageView image;
    @Override
    public void initView() {
        //状态栏
        StatusBarUtil.setWindowStatusBarColor(this,R.color.black);
        showfloatButton(false,false);
        image=findViewById(R.id.image_view);
    }

    @Override
    public void doBusiness() {

     Picasso.with(ImageViewActivity.this).load(GlobalConfig.ONLINE_HTTP+""+getIntent().getStringExtra("image_url")).into(image);
    image.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        finish();
    }
});
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_image_view;
    }
}
